home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16114 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.easynet.co.uk!usenet
  2. From: Scarecrow <scarecrow@easynet.co.uk>
  3. Newsgroups: comp.lang.c++,comp.os.linux.setup
  4. Subject: G++ and math.h
  5. Date: Tue, 09 Apr 1996 17:40:36 +0100
  6. Organization: Easynet Ltd.
  7. Message-ID: <316A9304.6E1B@easynet.co.uk>
  8. NNTP-Posting-Host: scarecrow.easynet.co.uk
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.01 (Win95; I)
  13.  
  14. Dear All,
  15.  
  16.     I am having problems compiling code which uses the math.h 
  17. header. I have included the header correctly, but when I compile using 
  18. g++ 2.7.0 with -o and -m486 options I get several errors looking like 
  19. this:
  20.  
  21. "/tmp/cca001502.o(.text+0x1ce): undefined reference to 'sin'"
  22.  
  23.     There is one error for every trig equation in the code. At 
  24. university I have to use a -l m option, but my linux version has never 
  25. heard of it.
  26.  
  27.     I also compiled it with borland 3.51 under DOS and it compiled 
  28. fine, but as the code is a Roff pre-processor I have no idea if it works 
  29. as I need a Linux executable.
  30.  
  31.     Thanks for your help,
  32.  
  33.         James Purbrick.
  34.